package parsers;

//package main;
import java.io.IOException;

import partParsers.PartParser;
import util.DBTableModel;
import util.URLquery;

/*
 * Created on 31.07.2006
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author Grinfeld Igor
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public interface NadlanParser {	
	/*checking if the current file belong to the first method of parsing*/
	public boolean belong(String curPage)throws IOException;
	
	//find real estate advertisments 
	public boolean findData()throws IOException;
	
	//return Advertisment data parser that match this class of sites
	public PartParser getAdvertParser(
		String buf,String curDataPage,String idDataToken,int[] indexes);
	
	//return url query maker class that matchs this class of sites
	public URLquery getQueryMaker(DBTableModel table,String[] siteParams);
	
	//method returns link to advertisment of this site
	public String getLink(String advType,String advIndex);
}
